package com.stone.weblog.common.enums;

import com.stone.weblog.common.exception.BaseExceptionInterface;
import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
public enum ResponseCodeEnum implements BaseExceptionInterface {
    /*  通用错误 */
    SYSTEM_ERROR("10000","未知错误请联系管理员"),
    /* 参数错误 */
    PARAM_NOT_VALID("10001","错误参数"),
    /* 业务错误 */
    PRODUCT_NOT_POUND("20000","业务不存在（测试使用）"),
    /* 登录失败 */
    LOGIN_FAIL("21001", "登录失败"),
    /* 用户名或密码错误 */
    USERNAME_OR_PWD_ERROR("21002", "用户名或密码错误"),
    UNAUTHORIZED("21003", "无访问权限，请先登录！"),
    ;


   private String errorCode;
   private String errorMessage;

}
